<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Selection</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .select-box {
      width: 300px;
      height: 150px;
      margin: 20px auto;
    }
    .select-box .edit-box {
      width: 100%;
      height: 100%;
      overflow-y: auto;
      border: 1px solid;
    }
  </style>
</head>
<body>
<div id="app">
  <h2>selection</h2>
  <div class="select-box">
    <button name="getSelection">get Selection</button>
    <button name="selectAll">select all</button>
    <button name="selectRange">select range</button>
    <button name="selectMutiple">select 多行</button>
    <div class="edit-box" id="editor" contenteditable="true"></div>
  </div>
</div>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="index.js"></script>
</body>
</html>
